<template>
  <div class="container">
    <h2>{{ $route.params.id }}</h2>
    <nuxt-link :to="{ name: 'index' }">回首页</nuxt-link>
  </div>
</template>

<script>
export default {
  validate({ params }) {
    console.log(params.id)
    return params.id === '456'
  },
  mounted() {
    this.$toast.success('时刻提防技术的开发')
  }
}
</script>
